package com.tinysand.advert.repository;

import com.tinysand.advert.entity.AdvertUser;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 广告投放服务相关用户查询接口定义
 *
 * Created By TINY
 * Create Time 2020/2/15
 **/
public interface UserRepository
        extends JpaRepository<AdvertUser, Long> {

    /**
     * 根据用户名查找相关用户记录
     *
     * @param username 用户名
     * @return 用户记录
     */
    AdvertUser findByUsername(String username);
}
